package cn.lili.modules.promotion.client;

import cn.lili.modules.constant.ServiceConstant;
import cn.lili.modules.promotion.entity.dos.GreenCommonwealContribution;
import cn.lili.modules.promotion.entity.dos.GreenContributionInfo;
import cn.lili.modules.promotion.entity.dto.GreenConfigValueDTO;
import cn.lili.modules.promotion.fallback.GreenCommonwealContributionFallback;
import cn.lili.modules.promotion.fallback.GreenFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author xiangqian
 * @version 1.0
 * @data 2023/12/21 15:57
 */
@FeignClient(path = "${server.servlet.context-path}", name = ServiceConstant.PROMOTION_SERVICE, contextId = "green-common-contribution", fallback = GreenCommonwealContributionFallback.class)
public interface GreenCommonwealContributionClient {

    /**
     * 公益商品分佣到绿色公益账户
     *
     * @return 返回结果
     */
    @PostMapping("/feign/promotion/green-commonweal/contribution")
    void contribution(@RequestBody GreenCommonwealContribution greenCommonwealContribution);

}
